package com.xinhe.web.enums;

/**
 * @Description: 所有值枚举
 */
public enum KeyValueEnum {
	//公众号id
	weixin_config_id_service("weixin_config_id_service", "550617216979042304"),
	//小程序微信配置ID
	weixin_config_id_mini_program("weixin_config_id_mini_program", "519802482830868480"),
	;

	public String key;
	public String value;

	KeyValueEnum(String key, String value){
		this.key = key;
		this.value = value;
	}
	public static String getValue(String key){
		KeyValueEnum[] values = KeyValueEnum.values();
		for (KeyValueEnum keyValueEnum :values){
			if(keyValueEnum.key.equals(key)){
				return keyValueEnum.value;
			}
		}
		return null;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getKey() {
		return key;
	}  
}
